﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace Muccu.JavaScript
{
    internal static class StringExtensions
    {
        public static string ToCamelCase(this string input)
        {
            if (!string.IsNullOrEmpty(input) && input.Length > 1 && char.IsUpper(input[0]))
                return char.ToLower(input[0], CultureInfo.InvariantCulture) + input.Substring(1);
            return input;
        }
    }
}
